load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

go_library(
    name = "cycle",
    srcs = ["detector.go"],
    importpath = "github.com/cockroachdb/cockroach/pkg/sql/opt/cycle",
    visibility = ["//visibility:public"],
)

go_test(
    name = "cycle_test",
    srcs = ["detector_test.go"],
    embed = [":cycle"],
)
